<%= form_for(@penjualan) do |f| %>
  <% if @penjualan.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@penjualan.errors.count, "error") %> prohibited this penjualan from being saved:</h2>

      <ul>
      <% @penjualan.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :customerid %><br />
    <%= f.number_field :customerid %>
  </div>
  <div class="field">
    <%= f.label :userid %><br />
    <%= f.number_field :userid %>
  </div>
  <div class="field">
    <%= f.label :thargapokok %><br />
    <%= f.number_field :thargapokok %>
  </div>
  <div class="field">
    <%= f.label :thargajual %><br />
    <%= f.number_field :thargajual %>
  </div>
  <div class="field">
    <%= f.label :cash %><br />
    <%= f.number_field :cash %>
  </div>
  <div class="field">
    <%= f.label :disc %><br />
    <%= f.text_field :disc %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
